package com.efast.cafe.portal.dao.company;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.entity.company.PortalCompanyUserLevel;
import com.efast.cafe.portal.entity.company.PortalCompanyUserLevelUserDto;

public interface PortalCompanyUserLevelDao {

	int levalCodeIsExistWithId(@Param(value = "portal_company_user_level_id") Long portal_company_user_level_id,
			@Param(value = "level_code") String level_code, @Param(value = "company_code") String company_code);

	/**
	 * 查询所有的用户级别
	 * @param companyCode
	 * @return List<PortalCompanyUserLevel>
	 * @Author Administrator
	 * @Date 2017年9月25日
	 */
	public List<PortalCompanyUserLevel> queryUserLevelAll(@Param("companyCode") String companyCode);
	
	
	public List<PortalCompanyUserLevelUserDto> queryUserLevelUser(@Param(value = "portal_company_user_level_id") Long portal_company_user_level_id, @Param(value = "company_code") String company_code);
}
